package com.songlanyun.modules.coupon.service;

import com.songlanyun.common.drive.IBaseService;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.coupon.entity.CouponEntity;
import com.songlanyun.modules.coupon.entity.CouponGoodsEntity;
import com.songlanyun.modules.goods.model.vo.GoodsSuperSlimVo;

import java.util.List;
import java.util.Map;

/**
 * 优惠券与商品的关系
 *
 * @author lubo
 * @email sunlightcs@gmail.com
 * @date 2022-07-05 15:20:02
 */
public interface CouponGoodsService extends IBaseService<Long,CouponGoodsEntity> {

    @Override
    PageUtils queryPage(Map<String, Object> params);

    List<GoodsSuperSlimVo> loadAdaptGoods(Long shopId,Long couponId);

    void batchSet(CouponEntity couponEntity, List<CouponGoodsEntity> couponGoodsEntities);

    List<Long> loadAdaptGoodIds(Long shopId, Long id);
}

